<?xml version='1.0' encoding='UTF-8' ?>
<!--
    Document   : welcomeICEfaces
    Created on : 30.03.2011, 17:59:54
    Author     : HipTeen
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
        xmlns:icecore="http://www.icefaces.org/icefaces/core"
       xmlns:ace="http://www.icefaces.org/icefaces/components"
       xmlns:ice="http://www.icesoft.com/icefaces/component"
       >
    <h:head>
        <title>ICEfaces 2</title>
        <link rel="stylesheet" type="text/css" href="./xmlhttp/css/rime/rime.css"/>
    </h:head>
    <h:body styleClass="ice-skin-rime">
        <div id="header">
           <!--
           <ui:include src="/header.xhtml" >
	          <ui:param name="param_name" value="param_value" />
           </ui:include>
           -->
        </div>        
        <div id="content">
             <h:form id="form"> 
                <h:outputText value="Please enter your Username"/><br />
                <ice:inputText value="#{loginBean.name}"/><br />
                <h:outputText value="Please enter your Password"/><br />
                <h:inputSecret value="#{loginBean.pw}" /> <br />
                <ice:commandButton value="Submit" action="#{loginBean.doLogin()}"/> <br />
                <h:outputText value="Login Failed" rendered="#{loginBean.loginFailed}" />
             </h:form>
             <h:form>
                 <ice:commandLink value="Registrate" action="reg.jsf" />
             </h:form>
            <h:form>
                <ice:commandButton value="DO db stuff"
                                   action="#{lectureAdmin.testDBfunctionality()}" />
                <ice:commandButton value="Set up Test data"
                                   action="#{lectureAdmin.setUpTestData()}" />
            </h:form>
         </div>
        
        
    </h:body>
    <h:outputStylesheet library="org.icefaces.component.skins" name="rime.css" />
</html>